<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./lib/react.development.js"></script>
    <script src="./lib/react-dom.development.js"></script>
    <style>
        .red{
            color:red;
        }
    </style>
</head>
<body>
    <div class="bg1" id="box">
        <div>
            <p tel="1222">123123</p>
            <h3 sgg="atguigu">atguigu</h3>
        </div>
    </div>


    <div id="root"></div>

</body>
<script>
    const root = ReactDOM.createRoot(document.querySelector('#root'))
    const oDiv = React.createElement('div', {className:'bg1', id:'box'}, 
        React.createElement('div', {}, 
            React.createElement('p', {tel:'1222'}, 123123),
            React.createElement('h3', {sgg:'atguigu'}, 'atguigu')
        )
    )

    root.render(oDiv)
</script>
</html>